Fluent Assertions Documentation
FluentAssertions Namespace / AssertionExtensions Class / ExecutionTime Method / ExecutionTime(Func<Task>) Method
In This Topic
    ExecutionTime(Func<Task>) Method
    In This Topic
    Provides methods for asserting the execution time of an async action.
    Syntax
    [Extension()]
    public static ExecutionTime ExecutionTime( 
       Func<Task> action
    )

    Parameters

    action

    Return Value

    Returns an object for asserting that the execution time matches certain conditions.
    Exceptions
    ExceptionDescription
    action is a null reference (Nothing in Visual Basic).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also